home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Tool Chest / Development Tools & Languages / Macintosh Common Lisp Related / Lisp FAQ 14Sept94 / 2.General Questions < prev    next >
Encoding:
Internet Message Format  |  1994-09-15  |  46.2 KB  |  [TEXT/ttxt]

  1. Subject: FAQ: Lisp Frequently Asked Questions 2/7 [Monthly posting]
  2. Newsgroups: comp.lang.lisp,news.answers,comp.answers
  3. Summary: Frequently asked questions about Lisp -- General Questions
  4. Distribution: world
  5. Followup-To: poster
  6. Reply-To: ai+lisp-faq@cs.cmu.edu
  7. Approved: news-answers-request@MIT.Edu
  8.  
  9. Archive-name: lisp-faq/part2
  10. Last-Modified: Tue Sep 13 18:05:32 1994 by Mark Kantrowitz
  11. Version: 1.50
  12. Maintainer: Mark Kantrowitz and Barry Margolin <ai+lisp-faq@cs.cmu.edu>
  13. URL: http://www.cs.cmu.edu:8001/Web/Groups/AI/html/faqs/lang/lisp/top.html
  14. Size: 47297 bytes, 953 lines
  15.  
  16. ;;; ****************************************************************
  17. ;;; Answers to Frequently Asked Questions about Lisp ***************
  18. ;;; ****************************************************************
  19. ;;; Written by Mark Kantrowitz and Barry Margolin
  20. ;;; lisp_2.faq 
  21.  
  22. This post contains Part 2 of the Lisp FAQ.
  23.  
  24. If you think of questions that are appropriate for this FAQ, or would
  25. like to improve an answer, please send email to us at ai+lisp-faq@cs.cmu.edu.
  26.  
  27. Topics Covered (Part 2):
  28.  
  29.   [2-1]   Is there a GNU-Emacs interface to Lisp?
  30.   [2-2]   When should I use a hash table instead of an association list?
  31.   [2-3]   What is the equivalent of EXPLODE and IMPLODE in Common Lisp?
  32.   [2-4]   Is Lisp inherently slower than more conventional languages such as C?
  33.   [2-5]   Why does Common Lisp have "#'"?
  34.   [2-6]   How do I call non-Lisp functions from Lisp?
  35.   [2-7]   Can I call Lisp functions from other languages?
  36.   [2-8]   I want to call a function in a package that might not exist at
  37.           compile time. How do I do this?  
  38.   [2-9]   What is CDR-coding?
  39.   [2-10]  What is garbage collection?
  40.   [2-11]  How do I save an executable image of my loaded Lisp system?
  41.           How do I run a Unix command in my Lisp?
  42.   [2-12]  I'm porting some code from a Symbolics Lisp machine to some
  43.           other platform, and there are strange characters in the code.
  44.           What do they mean?  
  45.   [2-13]  History: Where did Lisp come from?
  46.   [2-14]  How do I find the argument list of a function?
  47.           How do I get the function name from a function object?
  48.   [2-15]  How can I have two Lisp processes communicate via unix sockets?
  49.   [2-16]  How can I create a stream that acts like UNIX's /dev/null
  50.           (i.e., gobbles any output and immediately signals EOF on
  51.           input operations)?
  52.   [2-17]  Read-time conditionalization of code (#+ #- and *features*)   
  53.   [2-18]  What reader macro characters are used in major Lisp systems?
  54.   [2-19]  How do I determine if a file is a directory or not? 
  55.           How do I get the current directory name from within a Lisp 
  56.           program? Is there any way to create a directory?
  57.   [2-20]  What is a "Lisp Machine" (LISPM)?
  58.  
  59. Search for \[#\] to get to question number # quickly.
  60.  
  61. ----------------------------------------------------------------
  62. Subject: [2-1] Is there a GNU-Emacs interface to Lisp?
  63.  
  64. ILISP is a powerful GNU-Emacs interface to many dialects of Lisp,
  65. including Lucid, Allegro, {A}KCL, IBCL, and CMU.  Written by Chris
  66. McConnell <ccm+@cs.cmu.edu> and now maintained by Marco Antoniotti
  67. <marcoxa@cs.nyu.edu> and Rick Busdiecker <rfb@lehman.com>.  It is
  68. available by anonymous ftp from
  69.    h.gp.cs.cmu.edu:/usr/rfb/ilisp/ [128.2.254.156]
  70. as the file ilisp-5.6.tar.gz.  If you want to be on the ilisp mailing
  71. list, to hear about new releases and patches, send mail to
  72. ilisp-request@lehman.com.  Please send any comments, code, or bug
  73. reports to ilisp@lehman.com.
  74.  
  75. Franz Inc.'s GNU-Emacs/Lisp interface includes an online Common Lisp
  76. manual. (The manual is available by license from Franz Inc. Contact
  77. info@franz.com for more information.) The Emacs-Lisp interface
  78. (without the online Common Lisp reference manual and some
  79. Allegro-specific code) is available free from
  80.    ftp.uu.net:/vendor/franz/emacs/eli-2.0.11.tar.gz
  81. and takes advantage of GNU-Emacs 19.X's newest features, including
  82. support for mouse input, pulldown menus, and multifont text. The
  83. interface also supports Epoch 3.2 and 4.2, and LEmacs 19.6 and 19.8.
  84. For discussion of the Franz lisp-emacs interface, join the
  85. allegro-cl-request@cs.berkeley.edu mailing list.
  86. (See also [1-2] for a hardcopy version of the Common Lisp reference manual.)
  87.  
  88. The cl-shell package provides a major mode (cl-shell-mode) for running
  89. Common Lisp (CL) as an Emacs subprocess.  It provides a general
  90. mechanism for communication between CL and Emacs which does not rely
  91. on extra processes, and should therefore be easily portable to any
  92. version of CL.  Features include direct (i.e., not through a temp file)
  93. evaluation and in-package compilation of forms from lisp-mode buffers,
  94. type-ahead and a history mechanism for the cl-shell buffer, and pop-up
  95. help facilities for the CL functions documentation, macroexpand and
  96. describe.  Extensions for Lucid Common Lisp provide pop-up arglists
  97. and source file editing.  Other extensions are provided to allow
  98. editing source files of CLOS or Flavors methods.  Cl-shell is
  99. available on the Lucid tape (in the goodies directory) or via
  100. anonymous ftp from whitechapel.media.mit.edu (18.85.0.125).
  101.  
  102. Lucid includes some other Emacs-Lisp interfaces in its goodies directory.
  103.  
  104. Harlequin's LispWorks includes an Emacs-Lisp interface.
  105.  
  106. Venue's Medley has an optional EMACS Interface.
  107.  
  108. GNU-Emacs itself is available by anonymous ftp from prep.ai.mit.edu.
  109.  
  110. Edebug, a debugger for Emacs Lisp, and some utilities for Common Lisp
  111. debugging (Dave Gillespie's version of cl.el) are available by
  112. anonymous ftp from 
  113.    a.cs.uiuc.edu:/pub/edebug/
  114. To join the Edebug mailing list edebug@cs.uiuc.edu send mail to 
  115. edebug-request@cs.uiuc.edu. For more information, write to Daniel
  116. LaLiberte <liberte@cs.uiuc.edu>. 
  117.  
  118. ----------------------------------------------------------------
  119. Subject: [2-2] When should I use a hash table instead of an association list?
  120.  
  121. Both association lists (alists) and hash tables may be used to
  122. represent tabular data. Hash tables have an O(1) running time and
  123. alists an O(n) running time, so hash tables are ultimately more
  124. efficient than alists. However, if the alists are small, they can be
  125. more efficient than hash tables, which have a large initial overhead.
  126.  
  127. Alists can sometimes be more efficient if the keys are sorted
  128. according to frequency, with the most heavily accessed keys appearing
  129. at the front of the list. But one doesn't always know this kind of
  130. information, and even then the frequency distribution may be flat.
  131.  
  132. In Allegro CL 4.1 [SPARC; R1], the rule of thumb is that for less than
  133. 24 elements, linear search using alists beats hashing.  In Lucid CL
  134. 4.0.1 HP 9000/700, the break-even point is at 10 elements. The
  135. break-even points vary in other lisps from as low as 4 elements to as
  136. high as 100 elements. So if you're using alists in your code, using 
  137. hash tables instead may speed up your program. 
  138.  
  139. A potential problem may occur, however, when the keys of an EQ or EQL
  140. hash table are Lisp objects such as conses or arrays (or other objects
  141. that are identified by their addresses). In most implementations, such
  142. tables must be re-hashed after garbage collection. If your application
  143. causes frequent GCs, this can adversely affect the performance of hash
  144. table lookup. Since EQL-hashing and =-hashing of fixnums generally
  145. don't require rehashing after GC, one way of avoiding this problem is
  146. to include a unique identifier in each key object and hash on that
  147. instead. Another solution is to use an EQUAL hash table if the keys
  148. are conses or an EQUALP hash table if the keys are arrays or other
  149. (non-circular!) structures.
  150.  
  151. ----------------------------------------------------------------
  152. Subject: [2-3] What is the equivalent of EXPLODE and IMPLODE in Common Lisp?
  153.  
  154. Hopefully, the only reason you need to do this is as part of trying to port
  155. some old MacLisp code to Common Lisp.  These functions predated the
  156. inclusion of strings as a first-class data type in Lisp; symbols were used
  157. as strings, and they ere EXPLODEd to allow the individual characters to be
  158. manipulated in a list.
  159.  
  160. Probably the best approximations of these are:
  161.  
  162.    (defun explode (object)
  163.      (loop for char across (prin1-to-string object)
  164.            collect (intern (string char))))
  165.  
  166.    (defun implode (list)
  167.      (read-from-string (coerce (mapcar #'character list) 'string)))
  168.  
  169. An alternate definition of EXPLODE which uses MAP instead of LOOP is:
  170.  
  171.    (defun explode (object)
  172.      (map 'list #'(lambda (char) 
  173.                     (intern (string char)))
  174.           (prin1-to-string object)))
  175.  
  176. The creation of N conses of garbage to process a string of N
  177. characters is a hideously inefficient way of doing the job.  Rewrite
  178. EXPLODE code with PRIN1-TO-STRING, or better STRING if the arguments
  179. are symbols without funny characters.  For IMPLODE, try to make its
  180. caller use strings and try to make the result usable as a string to
  181. avoid having to call INTERN or READ-FROM-STRING.
  182.  
  183. ----------------------------------------------------------------
  184. Subject: [2-4] Is Lisp inherently slower than more conventional languages
  185.                such as C?
  186.  
  187. This is a tough question to answer, as you probably expected.  In many
  188. cases, it appears to be.  Lisp does not require the programmer to specify
  189. the data type of variables, so generic arithmetic operators may have to
  190. perform type checking at runtime in order to determine how to proceed.
  191. However, Lisp code can also be denser (i.e.  there is more expressed in a
  192. single line) than many other languages: the Lisp expression (+ A B) is more
  193. powerful than the C expression A+B (the Lisp version supports bignums,
  194. rationals, and complex numbers, while the C version only supports
  195. limited-size integers and floating point); therefore, one may claim that it
  196. is reasonable that the Lisp version take longer than the C version (but
  197. don't expect everyone to accept this rationalization).  Solutions to this
  198. include hardware support (e.g. processors that support type tags in data,
  199. such as SPARC and Symbolics Lisp Machines), declarations, and specialized
  200. variants of functions (e.g. in MacLisp, + accepts and returns only fixnums,
  201. +$ accepts and returns only flonums, and PLUS is generic).
  202.  
  203. At one time, the MIT PDP-10 MacLisp compiler was compared to DEC's
  204. PDP-10 Fortran compiler.  When appropriate declarations were supplied
  205. in the Lisp code, the performance of compiled Lisp arithmetic rivaled
  206. that of the Fortran code.  It would hardly be fair to compare Lisp
  207. without declarations to Fortran, since the Fortran compiler would have
  208. more information upon which it could base its optimizations. A more
  209. recent test found that numeric code compiled with optimizations using
  210. CMU CL is within the same ballpark as highly optimized Fortran code.
  211. For unoptimized Fortran code, CMU CL was about 4 times faster.
  212. Even the speed of numeric code generated by other Lisp compilers
  213. (AKCL, Allegro, Lucid) was well within an order of magnitude of good
  214. Fortran and C compilers (although slower than CMU CL).  Inspection of
  215. the emitted C code from AKCL doesn't reveal many obvious sources of
  216. inefficiency. (Since AKCL compiles Lisp into C, there are many cases
  217. where KCL code is as fast as hand-written C code.)
  218.  
  219. See the paper peoplesparc.berkeley.edu:/pub/papers/fastlisp.ps.Z
  220. for a discussion of the speed of Lisp vis a vis Fortran or C.
  221.  
  222. Since Lisp is a good language for rapid prototyping, it is easy for a
  223. mediocre programmer (or even a good programmer, who isn't being careful) to
  224. generate a large amount of inefficient Lisp code. A good example is the use
  225. of APPEND to link successive lists together, instead of keeping a pointer
  226. to the tail of the list. Often a programmer can obtain significant
  227. speed increases by using a time/space profiler to identify the
  228. functions which waste time (often small functions which are called
  229. frequently) and rewriting those functions.
  230.      
  231. ----------------------------------------------------------------
  232. Subject: [2-5] Why does Common Lisp have "#'"?
  233.  
  234. #' is a macro-character which expands #'FOO to (FUNCTION FOO).  Symbols in
  235. Lisp have two bindings, one for values and one for functions, allowing them
  236. to represent both variables and functions, depending on context. #'FOO
  237. accesses FOO's lexical function binding in a context where the value
  238. interpretation would normally occur.  #' is also used to create lexical
  239. closures for lambda expressions. A lexical closure is a function which when
  240. invoked executes the body of the lambda-expression in the lexical
  241. environment within which the closure was created.  See pp. 115-117 of CLtL2
  242. for more details.
  243.  
  244. ----------------------------------------------------------------
  245. Subject: [2-6] How do I call non-Lisp functions from Lisp?
  246.  
  247. Most Lisp implementations for systems where Lisp is not the most common
  248. language provide a "foreign function" interface.  As of now there has been
  249. no significant standardization effort in this area.  They tend to be
  250. similar, but there are enough differences that it would be inappropriate to
  251. try to describe them all here.  In general, one uses an
  252. implementation-dependent macro that defines a Lisp function, but instead of
  253. supplying a body for the function, one supplies the name of a function written
  254. in another language; the argument list portion of the definition is
  255. generally augmented with the data types the foreign function expects and
  256. the data type of the foreign function's return value, and the Lisp
  257. interface function arranges to do any necessary conversions.  There is also
  258. generally a function to "load" an object file or library compiled in a
  259. foreign language, which dynamically links the functions in the file being
  260. loaded into the address space of the Lisp process, and connects the
  261. interface functions to the corresponding foreign functions.
  262.  
  263. If you need to do this, see the manual for your language implementation for
  264. full details.  In particular, be on the lookout for restrictions on the
  265. data types that may be passed.  You may also need to know details about the
  266. linkage conventions that are used on your system; for instance, many C
  267. implementations prepend an underscore onto the names of C functions when
  268. generating the assembler output (this allows them to use names without
  269. initial underscores internally as labels without worrying about conflicts),
  270. and the foreign function interface may require you to specify this form
  271. explicitly.
  272.  
  273. Franz Allegro Common Lisp's "Foreign Function Call Facility" is
  274. described in chapter 10 of the documentation. Calling Lisp Functions
  275. from C is treated in section 10.8.2. The foreign function interface in
  276. Macintosh Common Lisp is similar. The foreign function interface for
  277. KCL is described in chapter 10 of the KCL Report. The foreign function
  278. interfaces for Lucid on the Vax and Lucid on the Sun4 are
  279. incompatible. Lucid's interface is described in chapter 5 of the
  280. Advanced User's Guide.
  281.  
  282. ----------------------------------------------------------------
  283. Subject: [2-7] Can I call Lisp functions from other languages?
  284.  
  285. In implementations that provide a foreign function interface as described
  286. above, there is also usually a "callback" mechanism.  The programmer may
  287. associate a foreign language function name with a Lisp function.  When a
  288. foreign object file or library is loaded into the Lisp address space, it is
  289. linked with these callback functions.  As with foreign functions, the
  290. programmer must supply the argument and result data types so that Lisp may
  291. perform conversions at the interface. Note that in such foreign function
  292. interfaces Lisp is often left "in control" of things like memory
  293. allocation, I/O channels, and startup code (this is a major nuisance
  294. for lots of people).
  295.      
  296. ----------------------------------------------------------------
  297.  
  298. Subject: [2-8]  I want to call a function in a package that might not exist at
  299.                 compile time. How do I do this?
  300.  
  301. Use (funcall (find-symbol "SYMBOL-NAME" :pkg-name) ...).
  302.  
  303. ----------------------------------------------------------------
  304. Subject: [2-9]  What is CDR-coding?
  305.  
  306. CDR-coding is a space-saving way to store lists in memory.  It is normally
  307. only used in Lisp implementations that run on processors that are
  308. specialized for Lisp, as it is difficult to implement efficiently
  309. in software.  In normal list structure, each element of the
  310. list is represented as a CONS cell, which is basically two pointers (the
  311. CAR and CDR); the CAR points to the element of the list, while the CDR
  312. points to the next CONS cell in the list or NIL.  CDR-coding takes
  313. advantage of the fact that most CDR cells point to another CONS, and
  314. further that the entire list is often allocated at once (e.g. by a call to
  315. LIST).  Instead of using two pointers to implement each CONS cell, the CAR
  316. cell contains a pointer and a two-bit "CDR code".  The CDR code may contain
  317. one of three values: CDR-NORMAL, CDR-NEXT, and CDR-NIL.  If the code is
  318. CDR-NORMAL, this cell is the first half of an ordinary CONS cell pair, and
  319. the next cell in memory contains the CDR pointer as described above.  If
  320. the CDR code is CDR-NEXT, the next cell in memory contains the next CAR
  321. cell; in other words, the CDR pointer is implicitly thisaddress+1, where
  322. thisaddress is the memory address of the CAR cell.  If the CDR code is
  323. CDR-NIL, then this cell is the last element of the list; the CDR pointer is
  324. implicitly a reference to the object NIL.  When a list is constructed
  325. incrementally using CONS, a chain of ordinary pairs is created; however,
  326. when a list is constructed in one step using LIST or MAKE-LIST, a block of
  327. memory can be allocated for all the CAR cells, and their CDR codes all set
  328. to CDR-NEXT (except the last, which is CDR-NIL), and the list will only
  329. take half as much storage (because all the CDR pointers are implicit).
  330.  
  331. If this were all there were to it, it would not be difficult to implement
  332. in software on ordinary processors; it would add a small amount of overhead
  333. to the CDR function, but the reduction in paging might make up for it.  The
  334. problem arises when a program uses RPLACD on a CONS cell that has a CDR
  335. code of CDR-NEXT or CDR-NIL.  Normally RPLACD simply stores into the CDR
  336. cell of a CONS, but in this case there is no CDR cell -- its contents are
  337. implicitly specified by the CDR code, and the word that would normally
  338. contain the CDR pointer contains the next CONS cell (in the CDR-NEXT case)
  339. to which other data structures may have pointers, or the first word of some
  340. other object (in the CDR-NIL case).  When CDR-coding is used, the
  341. implementation must also provide automatic "forwarding pointers"; an
  342. ordinary CONS cell is allocated, the CAR of the original cell is copied
  343. into its CAR, the value being RPLACD'ed is stored into its CDR, and the old
  344. CAR cell is replaced with a forwarding pointer to the new CONS cell.
  345. Whenever CAR or CDR is performed on a CONS, it must check whether the
  346. location contains a forwarding pointer.  This overhead on both CAR and CDR,
  347. coupled with the overhead on CDR to check for CDR codes, is generally
  348. enough that using CDR codes on conventional hardware is infeasible.
  349.  
  350. There is some evidence that CDR-coding doesn't really save very much
  351. memory, because most lists aren't constructed at once, or RPLACD is done on
  352. them enough that they don't stay contiguous.  At best this technique can
  353. save 50% of the space occupied by CONS cells. However, the savings probably
  354. depends to some extent upon the amount of support the implementation
  355. provides for creating CDR-coded lists.  For instance, many system functions
  356. on Symbolics Lisp Machines that operate on lists have a :LOCALIZE option;
  357. when :LOCALIZE T is specified, the list is first modified and then copied
  358. to a new, CDR-coded block, with all the old cells replaced with forwarding
  359. pointers.  The next time the garbage collector runs, all the forwarding
  360. pointers will be spliced out.  Thus, at a cost of a temporary increase in
  361. memory usage, overall memory usage is generally reduced because more lists
  362. may be CDR-coded. There may also be some benefit in improved paging
  363. performance due to increased locality as well (putting a list into
  364. CDR-coded form makes all the "cells" contiguous). Nevertheless, modern
  365. Lisps tend to use lists much less frequently, with a much heavier
  366. reliance upon code, strings, and vectors (structures).
  367.  
  368. ----------------------------------------------------------------
  369. Subject: [2-10] What is garbage collection?
  370.  
  371. Garbage Collection (GC) refers to the automatic storage allocation
  372. mechanisms present in many Lisps. There are several kinds of storage
  373. allocation algorithms, but most fall within two main classes:
  374.  
  375.    1. Stop and Copy. Systems which copy active objects from "old"
  376.       storage to "new" storage and then recycle the old storage.
  377.  
  378.    2. Mark and Sweep. Systems which link together storage
  379.       used by discarded objects. 
  380.  
  381. Generational scavenging garbage collection (aka emphemeral GC) is a
  382. variation in which memory is allocated in layers, with tenured
  383. (long-lived) objects in the older layers. Rather than doing a full GC
  384. of all of memory every time more room is needed, only the last few
  385. layers are GCed during an ephemeral GC, taking much less time.
  386. Short-lived objects are quickly recycled, and full GCs are then much
  387. less frequent. It is most often used to improve the performance of
  388. stop and copy garbage collectors.  It is possible to implement
  389. ephemeral GC in mark and sweep systems, just much more difficult.
  390.  
  391. Stop and copy garbage collection provides simpler storage allocation,
  392. avoids fragmentation of memory (intermixing of free storage with used
  393. storage). Copying, however, consumes more of the address space, since up to
  394. half the space must be kept available for copying all the active objects.
  395. This makes stop and copy GC impractical for systems with a small address
  396. space or without virtual memory.  Also, copying an object requires that you
  397. track down all the pointers to an object and update them to reflect the new
  398. address, while in a non-copying system you need only keep one pointer to an
  399. object, since its location will not change. It is also more difficult to
  400. explicitly return storage to free space in a copying system.
  401.  
  402. Garbage collection is not part of the Common Lisp standard. Most Lisps
  403. provide a function ROOM which provides human-readable information about the
  404. state of storage usage. In many Lisps, (gc) invokes an ephemeral garbage
  405. collection, and (gc t) a full garbage collection.
  406.  
  407. ----------------------------------------------------------------
  408. Subject: [2-11] How do I save an executable image of my loaded Lisp system?
  409.                 How do I run a Unix command in my Lisp?
  410.  
  411. There is no standard for dumping a Lisp image. Here are the
  412. commands from some lisp implementations:
  413.    Lucid:               DISKSAVE
  414.    Symbolics:           Save World  [CP command]
  415.    CMU CL:              SAVE-LISP
  416.    Franz Allegro:       EXCL:DUMPLISP (documented) 
  417.                         SAVE-IMAGE (undocumented)
  418.    Medley:              IL:SYSOUT or IL:MAKESYS
  419.    MCL:                 SAVE-APPLICATION <pathname>
  420.                           &key :toplevel-function  :creator :excise-compiler
  421.                           :size :resources :init-file :clear-clos-caches
  422.    KCL:                 (si:save-system "saved_kcl")
  423.    LispWorks:        LW:SAVE-IMAGE
  424.  
  425. There is no standard for running a Unix shell command from Lisp,
  426. especially since not all Lisps run on top of Unix. Here are the
  427. commands from some Lisp implementations:
  428.    Allegro:             EXCL:RUN-SHELL-COMMAND
  429.    Lucid:               RUN-PROGRAM (name 
  430.                                      &key input output
  431.                                           error-output (wait t) arguments
  432.                                           (if-input-does-not-exist :error)
  433.                                           (if-output-exists :error)
  434.                                           (if-error-output-exists :error))
  435.    KCL:                 SYSTEM 
  436.                         For example, (system "ls -l").
  437.                         You can also try RUN-PROCESS and EXCLP, but they
  438.                         don't work with all versions of KCL.
  439.    CMU CL:              RUN-PROGRAM (program args
  440.                &key (env *environment-list*) (wait t) pty input
  441.                if-input-does-not-exist output
  442.                (if-output-exists :error) (error :output) 
  443.                (if-error-exists :error) status-hook before-execve)
  444.    LispWorks:           FOREIGN:CALL-SYSTEM-SHOWING-OUTPUT
  445.  
  446. To toggle source file recording and cross-reference annotations, use
  447.    Allegro:             excl:*record-source-file-info*
  448.             excl:*load-source-file-info* 
  449.             excl:*record-xref-info*
  450.             excl:*load-xref-info*
  451.    LispWorks:           (toggle-source-debugging nil)
  452.  
  453. Memory management:
  454.    CMU CL:              (bytes-consed-between-gcs)  [this is setfable]
  455.    Lucid:        (change-memory-management 
  456.                      &key growth-limit expand expand-reserved)
  457.    Allegro:        *tenured-bytes-limit*
  458.    LispWorks:           LW:GET-GC-PARAMETERS
  459.                         (use LW:SET-GC-PARAMETERS to change them)
  460.  
  461. ----------------------------------------------------------------
  462. Subject: [2-12] I'm porting some code from a Symbolics Lisp machine to some
  463.                 other platform, and there are strange characters in the code.
  464.                 What do they mean?
  465.  
  466. The Symbolics Zetalisp character set includes the following
  467. characters not present in other Lisps (^ means control):
  468.    ^]      >=      greater than or equal to
  469.    ^\      <=      less than or equal to
  470.    ^Z      !=      not equal to
  471.    ^^      ==      equivalent to 
  472.    ^E      not
  473.    ^G      pi
  474.    ^L      +/-     plus/minus
  475.    ^H      lambda
  476.    ^F      epsilon
  477.    ^W      <-->    left/right arrow
  478.    ^X      <--     left arrow
  479.    ^Y      -->     right arrow
  480.    ^A              down arrow
  481.    ^K              up arrow
  482.    ^D              up caret
  483.    ^_              down caret
  484.    ^T              forall
  485.    ^U              there exists
  486.    ^B              alpha
  487.    ^C              beta
  488.    ^I              gamma
  489.    ^J              delta
  490.    ^O              partial delta  
  491.    ^N              infinity
  492.    ^M              circle +
  493.    ^V              circle x
  494.  
  495. Other special characters to look out for are the font-change characters,
  496. which are represented as a ^F followed by a digit or asterisk. A digit
  497. means to push font #N onto the stack; an asterisk means to pop the most
  498. recent font from the stack. You can clean up the code by replacing "\^F."
  499. with "". In format statements, ^P and ^Q are used to delimit text to
  500. be printed in a particular character style.
  501.      
  502. ----------------------------------------------------------------
  503. Subject: [2-13] History: Where did Lisp come from?
  504.  
  505. John McCarthy developed the basics behind Lisp during the 1956 Dartmouth
  506. Summer Research Project on Artificial Intelligence.  He intended it as an
  507. algebraic LISt Processing (hence the name) language for artificial
  508. intelligence work. Early implementations included the IBM 704, the IBM
  509. 7090, the DEC PDP-1, the DEC PDP-6 and the DEC PDP-10. The PDP-6 and
  510. PDP-10 had 18-bit addresses and 36-bit words, allowing a CONS cell to
  511. be stored in one word, with single instructions to extract the CAR and
  512. CDR parts. The early PDP machines had a small address space, which
  513. limited the size of Lisp programs. 
  514.  
  515. Milestones in the development of Lisp:
  516.  
  517.    1956            Dartmouth Summer Research Project on AI.
  518.  
  519.    1960-65         Lisp1.5 is the primary dialect of Lisp.
  520.  
  521.    1964-           Development of BBNLisp at BBN.
  522.  
  523.    late 60s        Lisp1.5 diverges into two main dialects:
  524.                    Interlisp (originally BBNLisp) and MacLisp.
  525.  
  526.    early 70s       Development of special-purpose computers known as Lisp
  527.                    Machines, designed specificly to run Lisp programs. 
  528.                    Xerox D-series Lisp Machines run Interlisp-D. 
  529.                    Early MIT Lisp Machines run Lisp Machine Lisp 
  530.                    (an extension of MacLisp).
  531.  
  532.    1969            Anthony Hearn and Martin Griss define Standard Lisp to
  533.                    port REDUCE, a symbolic algebra system, to a variety
  534.                    of architectures.  
  535.  
  536.    late 70s        Macsyma group at MIT developed NIL (New Implementation
  537.                    of Lisp), a Lisp for the VAX.
  538.  
  539.                    Stanford and Lawrence Livermore National Laboratory
  540.                    develop S-1 Lisp for the Mark IIA supercomputer.
  541.  
  542.                    Franz Lisp (dialect of MacLisp) runs on stock-hardware
  543.                    Unix machines.
  544.  
  545.                    Gerald J. Sussman and Guy L. Steele developed Scheme,
  546.                    a simple dialect of Lisp with lexical scoping and
  547.                    lexical closures, continuations as first-class objects,
  548.                    and a simplified syntax (i.e., only one binding per symbol).
  549.  
  550.                    Advent of object-oriented programming concepts in Lisp.
  551.                    Flavors was developed at MIT for the Lisp machine,
  552.                    and LOOPS (Lisp Object Oriented Programming System) was
  553.                    developed at Xerox. 
  554.  
  555.    early 80s       Development of SPICE-Lisp at CMU, a dialect of MacLisp
  556.                    designed to run on the Scientific Personal Integrated
  557.                    Computing Environment (SPICE) workstation.
  558.  
  559.    1980            First biannual ACM Lisp and Functional Programming Conf.
  560.  
  561.    1981            PSL (Portable Standard Lisp) runs on a variety of platforms.
  562.  
  563.    1981+           Lisp Machines from Xerox, LMI (Lisp Machines Inc) 
  564.                    and Symbolics available commercially.
  565.  
  566.    April 1981      Grass roots definition of Common Lisp as a description
  567.                    of the common aspects of the family of languages (Lisp
  568.                    Machine Lisp, MacLisp, NIL, S-1 Lisp, Spice Lisp, Scheme). 
  569.                    
  570.  
  571.    1984            Publication of CLtL1. Common Lisp becomes a de facto 
  572.                    standard.
  573.  
  574.    1986            X3J13 forms to produce a draft for an ANSI Common Lisp
  575.                    standard. 
  576.  
  577.    1987            Lisp Pointers commences publication.
  578.  
  579.    1990            Steele publishes CLtL2 which offers a snapshot of
  580.                    work in progress by X3J13.  (Unlike CLtL1, CLtL2
  581.                    was NOT an output of the standards process and was
  582.                    not intended to become a de facto standard.  Read
  583.                    the Second Edition Preface for further explanation
  584.                    of this important issue.) Includes CLOS,
  585.                    conditions, pretty printing and iteration facilities. 
  586.  
  587.    1992            X3J13 creates a draft proposed American National
  588.                    Standard for Common Lisp. This document is the
  589.                    first official successor to CLtL1. 
  590.  
  591. [Note: This summary is based primarily upon the History section of the
  592. draft ANSI specification. More detail and references can be obtained from
  593. that document. See [4-12] for information on obtaining a copy.]
  594.  
  595. Gabriel and Steele's "The Evolution of Lisp", which appeared in the
  596. 1993 ACM History of Programming Languages conference, is available by
  597. anonymous ftp from  
  598.    ftp.cs.umbc.edu:/pub/Memoization/Misc/    [130.85.100.53]
  599. as Evolution-of-Lisp.ps.Z. 
  600.  
  601. ----------------------------------------------------------------
  602. Subject: [2-14]  How do I find the argument list of a function?
  603.                  How do I get the function name from a function object?
  604.  
  605. There is no standard way to find the argument list of a function,
  606. since implementations are not required to save this information.
  607. However, many implementations do remember argument information, and
  608. usually have a function that returns the lambda list. Here are the
  609. commands from some Lisp implementations:
  610.  
  611.    Lucid:                               arglist
  612.    Allegro:                             excl::arglist
  613.    Symbolics:                           arglist
  614.    LispWorks:                           lw:function-lambda-list
  615.  
  616. CMU Common Lisp, new compiler:
  617.    #+(and :CMU :new-compiler)
  618.    (defun arglist (name)
  619.      (let* ((function (symbol-function name))
  620.             (stype (system:%primitive get-vector-subtype function)))
  621.        (when (eql stype system:%function-entry-subtype)
  622.          (cadr (system:%primitive header-ref function
  623.                                   system:%function-entry-type-slot)))))
  624.  
  625. The draft ANSI standard does include FUNCTION-LAMBDA-EXPRESSION and
  626. FUNCTION-KEYWORDS, which can be used to create an ARGLIST function.
  627.  
  628. If you're interested in the number of required arguments you could use
  629.  
  630.    (defun required-arguments (name)
  631.      (or (position-if #'(lambda (x) (member x lambda-list-keywords))
  632.                       (arglist name))
  633.          (length (arglist name))))
  634.  
  635. To extract the function name from the function object, as in
  636.         (function-name #'car) ==> 'car
  637. use the following vendor-dependent functions:
  638.  
  639.    Symbolics: (si::compiled-function-name <fn>)
  640.     (unless (si:lexical-closure-p <fn>) ...)
  641.    Lucid:     (sys::procedure-ref <fn> SYS:PROCEDURE-SYMBOL)
  642.     (when (sys:procedurep <fn>) ..)
  643.    Allegro:   (xref::object-to-function-name <fn>)
  644.    CMU CL:    (kernel:%function-header-name <fn>)
  645.    AKCL:      (system::compiled-function-name <fn>)
  646.    MCL:       (ccl::function-name <fn>)
  647.    Harlequin: (system::function-name <fn>)
  648.  
  649. If a vendor-dependent function does not exist, the following
  650. (inefficient) code maps over all symbols looking for one whose
  651. function-cell matches the function object.
  652.  
  653. (defun function-name (fobject)
  654.    (do-all-symbols (fsymbol)
  655.       (when (and (fboundp fsymbol)
  656.                  (eq (symbol-function fsymbol) fobject))
  657.         (return fsymbol))))
  658.  
  659. If a vendor supports FUNCTION-LAMBDA-EXPRESSION, the third value is
  660. the name of the function, if available. 
  661.  
  662. ----------------------------------------------------------------
  663. Subject: [2-15] How can I have two Lisp processes communicate via unix sockets?
  664.  
  665. CLX uses Unix sockets to communicate with the X window server. Look at
  666. the following files from the CLX distribution for a good example of
  667. using Unix sockets from Lisp:
  668.         defsystem.lisp          Lucid, AKCL, IBCL, CMU.
  669.         socket.c, sockcl.lisp   AKCL, IBCL
  670.         excldep.lisp            Franz Allegro CL
  671. You will need the "socket.o" files which come with Lucid and Allegro.
  672. To obtain CLX, see the entry for CLX in the answer to question [7-1].
  673.  
  674. See the file sockets.tar.gz in the Lisp Utilities repository
  675. described in the answer to question [6-1].
  676.  
  677. ----------------------------------------------------------------
  678. Subject: [2-16]  How can I create a stream that acts like UNIX's /dev/null
  679.                  (i.e., gobbles any output and immediately signals EOF on
  680.                  input operations)?
  681.  
  682. (defparameter *dev-null*
  683.   #-lispm
  684.   (make-two-way-stream (make-concatenated-stream) (make-broadcast-stream))
  685.   ;; Since Lisp Machines have a built-in /dev/null which handles
  686.   ;; additional, non-standard operations, we'll use that instead.
  687.   #+lispm #'system:null-stream)
  688.  
  689. ----------------------------------------------------------------
  690. Subject: [2-17] Read-time conditionalization of code (#+ #- and *features*)
  691.  
  692. The #+ and #- syntax provides for the read-time conditionalization of
  693. lisp code, depending on the presence or absence of keywords on the
  694. *features* list. The nascent Common Lisp standard does not specify
  695. what keywords an implementation must have on its features list.
  696. Nevertheless, most implementations have features that allow one to
  697. distinguish the implementation from other implementations. This allows
  698. one to write implementation-dependent code that is run only in the
  699. relevant implementations.
  700.  
  701. Here is a list of the features to use to specify a particular Common
  702. Lisp implementation. Unfortunately, not every vendor has a
  703. unique keyword that distinguishes their family of implementations from
  704. those of other vendors, nor major and minor versions of the implementation.
  705.  
  706.    :lucid                       Lucid Common Lisp
  707.    :lcl3.0                      Lucid Common Lisp v3.0 and above
  708.    :lcl4.0                      Lucid Common Lisp v4.0 and above
  709.    ----------------
  710.    (and :allegro :franz-inc)    Franz Allegro Common Lisp
  711.    :excl                        Franz Allegro Common Lisp 
  712.    :aclpc                       Franz Allegro Common Lisp\PC.
  713.    :allegro-v3.0                Franz Allegro Common Lisp v3.0 
  714.    :allegro-v3.1                Franz Allegro Common Lisp v3.1 
  715.    :allegro-v4.0                Franz Allegro Common Lisp v4.0 
  716.    :allegro-v4.1                Franz Allegro Common Lisp v4.1 
  717.    ----------------
  718.    :cmu                         CMU Common Lisp
  719.    (and :cmu :new-compiler)     CMU Common Lisp w/Python compiler
  720.    (and :cmu :python)           CMU Common Lisp w/Python compiler
  721.    :cmu17                       CMU Common Lisp v17 and above
  722.    ----------------
  723.    kcl                          Kyoto Common Lisp
  724.    akcl                         Austin KCL
  725.    :ibcl                        Ibuki Common Lisp 
  726.    ----------------
  727.    :mcl                         Macintosh Common Lisp
  728.    :coral                       Coral Lisp; bought by Apple to become
  729.                 MACL, then MCL
  730.    :ccl                         Coral Common Lisp
  731.     [Note: Harlequin LispWorks also uses :ccl]
  732.    :ccl-1                       Coral Common Lisp v1
  733.    :ccl-1.3                     Coral Common Lisp v1.3 and higher
  734.    :ccl-2                       present in Macintosh Common Lisp 2.0 and higher
  735.    ----------------
  736.    :harlequin-common-lisp       Harlequin Common Lisp
  737.    :harlequin-unix-lisp         Harlequin on Unix platforms
  738.    :harlequin-PC-lisp           Harlequin on PC platforms
  739.    :lispworks                   Harlequin Lispworks development environment
  740.    :lispworks3                  major release of Harlequin Lispworks
  741.    :lispworks3.1                major and minor release of Harlequin Lispworks
  742.    :harlequin                   All Harlequin products. not always present?
  743.    ----------------
  744.    :clisp                       CLISP Common Lisp
  745.    ----------------
  746.    :symbolics                   Symbolics Genera
  747.    :imach                       Symbolics Genera for Ivory architecture
  748.    :cloe-runtime                Symbolics CLOE
  749.    :cloe                        CLOE 3.1
  750.    ----------------
  751.    :procyon                     Procyon Common Lisp
  752.    (and :procyon :macintosh)    Procyon Common Lisp, Macintosh version
  753.    (and :procyon :os2)          Procyon Common Lisp, OS2 version
  754.    ----------------
  755.    :gclisp                      Golden Common Lisp
  756.    ----------------
  757.    (and dec vax common)         DEC VAXlisp
  758.    ----------------
  759.    :explorer                    TI Explorer Lisp Machine  | used
  760.    :TI                          TI Explorer Lisp Machine  | interchangeably
  761.    :elroy                       TI Explorer release 3 and successors
  762.    ----------------
  763.    :Xerox                       Medley (Venue's CL/InterLisp combo) to rel2.01
  764.    :medley                      Medley releases 3.0 and up
  765.       Use  (IL:UNIX-GETPARM "mach") and (IL:UNIX-GETPARM "arch") to
  766.       distinguish platforms under Medley.
  767.    ----------------
  768.    :ecl                         ECoLisp
  769.    ----------------
  770.    :lispm                       Symbolics, TI, and LMI Lisp machines
  771.  
  772.    In the cases where a feature is not a keyword, it is almost always
  773.    in the LISP package.
  774.  
  775. The draft ANSI standard defines some other useful features:
  776.  
  777.   :cltl1                Compatible with the 1st edition of Steele
  778.   :cltl2                Compatible with the 2nd edition of Steele
  779.   :IEEE-Floating-Point  IEEE floating point support
  780.   :X3J13                conforms to some particular draft of the ANSI
  781.                         CL specification 
  782.   :draft-ANSI-CL        conforms to first full public review draft
  783.   :ANSI-CL              conforms to ANSI CL after its adoption
  784.   :common-lisp          language family "Common Lisp"
  785.  
  786. Other features used by some Lisps include:
  787.  
  788.   :clos                 Contains a native CLOS implementation.
  789.   :pcl                  Contains the PCL implementation of CLOS.
  790.   :flavors              Has an implementation of Symbolics Flavors
  791.   :loop                 Contains the :cltl1 version of the Loop macro
  792.   :ansi-loop            Contains the ANSI Loop macro
  793.   :clx or :xlib         Contains CLX
  794.   :clxr4 or :CLX-MIT-R4 Contains CLX for X11R4
  795.   :clxr5 or :CLX-MIT-R5 Contains CLX for X11R5
  796.   :compiler             Contains a compiler  
  797.   :windows              MS Windows version
  798.   :color                Color display
  799.   :monochrome           Monochrome display
  800.   :multiprocessing      Has multiprocessing capabilities.
  801.   :profiler             Has a PC-monitoring based profiler.
  802.  
  803. Platform-specific features, CPU-dependent features, and
  804. operating-system specific features are also important because they can
  805. indicate changes between different implementations of the same lisp,
  806. such as compiled file extensions (e.g., .sbin, .hbin, etc.).
  807. Unfortunately, not every vendor includes such features, and the naming
  808. conventions are inconsistent. Where there are several names for the
  809. same feature, we've put the preferred name first. Hopefully the
  810. vendors will begin to standardize their use of these features.
  811. CPU-dependent features include :sparc (used in CMU CL, Lucid CL,
  812. Harlequin, and Allegro CL), :mips (used in Allegro CL), :r2000 (used
  813. in Allegro CL even on r4000 machines), :mc68000, and :pa (HP's
  814. 9000/800 RISC cpu).  Platform-specific features include :sun (used in
  815. Allegro CL and Lucid), :sun4 (used in CMU CL and Allegro CL), :sgi
  816. (used in Allegro CL), :hp300, :hp400, :hp500, :sun3, :vax, :prime,
  817. :dec, :dec3100, :macintosh (used in Procyon but not MCL), :ibm-pc,
  818. :ibm-rt-pc.  OS-specific features include :unix (used in CMU CL, IBCL,
  819. and Lucid CL), :vms, :sunos (used in CMU CL), :sun-os (used in Lucid),
  820. :sunos4.0 and :sunos4 (used in various Allegro versions independent of
  821. the actual version of SunOS), :mach (used in CMU CL), :hpux, :ultrix,
  822. :os2, and :svr4.
  823.  
  824. Notes:
  825.  
  826.    :allegro alone doesn't suffice to distinguish Franz Allegro Common
  827.    Lisp from Macintosh Allegro Common Lisp (an early version of
  828.    Macintosh Common Lisp). :excl specifies that the EXCL package (a
  829.    set of Allegro extensions to Common Lisp) is present, but this has
  830.    since become synonymous with Franz Allegro Common Lisp.
  831.  
  832.    Thanks to Vincent Keunen for gathering the information in this list.
  833.  
  834. ----------------------------------------------------------------
  835. Subject: [2-18]  What reader macro characters are used in major Lisp systems?
  836.  
  837. The draft ANSI standard for Common Lisp leaves many dispatching macro
  838. characters unassigned. Of these, the following are explicitly reserved
  839. for the user and hence will never be defined by Common Lisp:
  840.    #!, #?, #[, #], #{, and #}. 
  841. All other unassigned macro characters are not reserved for the user,
  842. and hence the user has no guarantee that they won't be used by some
  843. Lisp implementation. 
  844.  
  845. As a result, there is the potential of portability clashes between
  846. systems that use the same macro characters. This question lists the
  847. non-standard macro character usage of major Lisp systems, in an effort
  848. to avoid such conflicts.
  849.  
  850.    #"        AKCL; pathnames
  851.    #$        Macintosh Common Lisp; traps
  852.    #%        Cyc; references to constants in the representation language
  853.    #%        Harlequin Lispworks; ?
  854.    #@        Macintosh Common Lisp; Points notation
  855.    #@         Defsystem    
  856.    #I        Portable Infix Package
  857.    #L        Allegro Common Lisp; logical pathnames
  858.    #M        Series
  859.    #T         Allegro Common Lisp; ?
  860.    #Y        CLISP; ?
  861.    #Z        Series
  862.    #_        Macintosh Common Lisp; traps
  863.    #`        Harlequin Lispworks; ?
  864.  
  865. There is a proposal in the ANSI draft to have COMPILE-FILE and LOAD
  866. bind *READTABLE*, which would allow one to locally redefine syntax
  867. through private readtables. Unfortunately, this doesn't help with the
  868. Infix Package, where one wants to globally extend syntax.
  869.  
  870. ----------------------------------------------------------------
  871. Subject: [2-19] How do I determine if a file is a directory or not? 
  872.                 How do I get the current directory name from within a Lisp 
  873.                 program? Is there any way to create a directory?
  874.  
  875. There is no portable way in Common Lisp of determining whether a file
  876. is a directory or not. Calling DIRECTORY on the pathname will not
  877. always work, since the directory could be empty. For UNIX systems
  878.    (defun DIRECTORY-P (pathname)
  879.       (probe-file (concatenate 'string pathname "/.")))
  880. seems to work fairly reliably. (If "foo" is a directory, then "foo/."
  881. will be a valid filename; if not, it will return NIL.) This won't, of
  882. course, work on the Macintosh, or on other operating systems (e.g.,
  883. MVS, CMS, ITS). On the Macintosh, use DIRECTORYP.
  884.  
  885. Moreover, some operating systems may not support the concept of
  886. directories, or even of a file system. For example, recent work on
  887. object-oriented technology considers files to be collections of
  888. objects. Each type of collection defines a set of methods for reading
  889. and writing the objects "stored" in the collection. 
  890.  
  891.  
  892. There's no standard function for finding the current directory from
  893. within a Lisp program, since not all Lisp environments have the
  894. concept of a current directory. Here are the commands from some Lisp
  895. implementations:
  896.    Lucid:               WORKING-DIRECTORY (which is also SETFable)
  897.                         PWD and CD also work
  898.    Allegro:             CURRENT-DIRECTORY (use excl:chdir to change it)
  899.    CMU CL:              DEFAULT-DIRECTORY
  900.    LispWorks:           LW:*CURRENT-WORKING-DIRECTORY* 
  901.                         (use LW:CHANGE-DIRECTORY to change it)
  902.  
  903. Allegro also uses the variable *default-pathname-defaults* to resolve
  904. relative pathnames, maintaining it as the current working directory.
  905. So evaluating (truename "./") in Allegro (and on certain other
  906. systems) will return a pathname for the current directory. Likewise,
  907. in some VMS systems evaluating (truename "[]") will return a pathname
  908. for the current directory.
  909.  
  910. There is no portable way of creating a new directory from within a
  911. Lisp program. 
  912.  
  913. ----------------------------------------------------------------
  914. Subject: [2-20] What is a "Lisp Machine" (LISPM)?
  915.  
  916. A Lisp machine (or LISPM) is a computer which has been optimized to run lisp
  917. efficiently and provide a good environment for programming in it. The
  918. original Lisp machines were implemented at MIT, with spinoffs as LMI (defunct)
  919. and Symbolics (bankrupt). Xerox also had a series of Lisp machines
  920. (Dandylion, Dandytiger), as did Texas Instruments (TI Explorer). The
  921. TI and Symbolics Lisp machines are currently available as cards that
  922. fit into Macintosh computers (the so-called "Lisp on a chip").
  923.  
  924. Optimizations typical of Lisp machines include:
  925.  
  926.    - Hardware Type Checking. Special type bits let the type be checked
  927.      efficiently at run-time.
  928.  
  929.    - Hardware Garbage Collection. 
  930.  
  931.    - Fast Function Calls. 
  932.  
  933.    - Efficient Representation of Lists.
  934.  
  935.    - System Software and Integrated Programming Environments.
  936.  
  937. For further information, see:
  938.  
  939.    Paul Graham, "Anatomy of a Lisp Machine", AI Expert, December 1988.
  940.  
  941.    Pleszkun and Thazhuthaveetil, "The Architecture of Lisp Machines",
  942.    IEEE Computer, March 1987.
  943.  
  944.    Ditzel, Schuler and Thomas, "A Lisp Machine Profile: Symbolics 3650",
  945.    AI Expert, January 1987.
  946.  
  947.    Peter M. Kogge, "The Architecture of Symbolic Computers",
  948.    McGraw-Hill 1991. ISBN 0-07-035596-7.
  949.  
  950. [Derived from a post by Arthur Pendragon <apendragon@delphi.com>.]
  951.  
  952. ----------------------------------------------------------------
  953. ;;; *EOF*
  954.